package com.study.selection.dao;

import com.study.selection.model.College;
import com.study.selection.model.Teachering;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TeacheringDao {

    List<Teachering> findAll();

    List<Teachering> findByKey(String key);

    int addTeachering(Teachering teachering);

    Teachering getByTeacheringId(int teacheringId);

    List<Teachering> getByTeacherId(int teacherId);

    List<Teachering> getByCourseId(int courseId);

    int updateTeachering(Teachering teachering);
    // 逻辑删除
    int deleteTeachering(int teacheringId);

}
